package com.company;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * @author Administrator
 */
public class HJ7取近似值 {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        BigDecimal bigDecimal = BigDecimal.valueOf(input.nextDouble());
        BigDecimal decimal = bigDecimal.setScale(0,BigDecimal.ROUND_HALF_UP);
        System.out.println(decimal);
    }

}
